package com.lagou.email.dao;

import com.lagou.email.bean.AuthCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface AuthCodeRepository extends JpaRepository<AuthCode, Integer> {

    void deleteByEmail(String email);

    AuthCode findByEmail(String email);
}
